//
//  WBTestPage.swift
//  Swift_Weibo
//
//  Created by Tim on 2019/8/13.
//  Copyright © 2019 Tim. All rights reserved.
//

import UIKit

class WBTestPage: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    override func setupTableView() {
        title = "第\(String(describing: navigationController!.children.count))个视图"
        navItem.rightBarButtonItem = UIBarButtonItem(title: "next", target: self, action: #selector(nextAction))
    }
    
    @objc private func nextAction() {
        let nextPage = WBTestPage()
        navigationController?.pushViewController(nextPage, animated: true)
    }
    
    
}
